package ru.nsu.expertsystem.chucknorris.xml_parser.xml;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import org.simpleframework.xml.ElementList;
import org.simpleframework.xml.Root;

@Root(name = "data")
public class XmlData {
	@ElementList(name = "objects")
	private ArrayList<XmlObject> objects;
	
	@ElementList(name = "predicates")
	private ArrayList<XmlPredicate> predicates;

	public List<XmlObject> getObjects() {
		if(objects == null)
			return null;
		return Collections.unmodifiableList(objects);
	}

	public List<XmlPredicate> getPredicates() {
		if(predicates == null)
			return null;
		return Collections.unmodifiableList(predicates);
	}
	
	
}
